package com.ozo.cloud.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 登录日志
 *
 * @author qiangesoft
 * @version 1.0
 * @date 2024-11-20 15:14:30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_login_log")
public class SysLoginLog {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 请求ip
     */
    @TableField("request_ip")
    private String requestIp;

    /**
     * 请求地点
     */
    @TableField("request_location")
    private String requestLocation;

    /**
     * 成功标志
     */
    @TableField("success_flag")
    private Byte successFlag;

    /**
     * 响应信息
     */
    @TableField("response_msg")
    private String responseMsg;

    /**
     * 登录时间
     */
    @TableField("login_time")
    private LocalDateTime loginTime;

}
